export default [
  {
    path: '/login',
    component: () => import('../views/login'),
  },
  {
    path: '/home',
    component: () => import('../views/home'),
    children: [
      {
        path: '/home',
        redirect: '/home/visual',
      },
      {
        path: 'visual',
        component: () => import('../views/visual'),
      },
      {
        path: 'user',
        component: () => import('../views/user'),
      },
      {
        path: 'order',
        component: () => import('../views/order'),
      },
      {
        path: 'role',
        component: () => import('../views/right/role'),
      },
      {
        path: 'auth',
        component: () => import('../views/right/auth'),
      },
      {
        path: 'goods',
        component: () => import('../views/goods/goods'),
      },
      {
        path: 'params',
        component: () => import('../views/goods/params'),
      },
      {
        path: 'cate',
        component: () => import('../views/goods/cate'),
      },
    ],
  },
  {
    path: '/',
    redirect: '/home',
  },
]
